package com.lp.chapter001.handler.easypoi;

import cn.afterturn.easypoi.handler.inter.IReadHandler;
import com.lp.chapter001.excel.easypoi.EasypoiExcel;

/**
 * Easypoi读取总条数
 * @author LP to 2024/03/01
 */
public class EasypoiTotalNumImportHandler implements IReadHandler<EasypoiExcel> {

    private static int rowCount = 0;

    @Override
    public void handler(EasypoiExcel easypoiImportExcel) {
        rowCount++;
    }

    @Override
    public void doAfterAll() {

    }

    public int getTotalRow() {
        return rowCount;
    }
}
